import request from '@/utils/request'

//查询
export function listHandle(data) {
  return request({
    url: 'newsUpdates/list',
    method: 'post',
    data
  })
}

export function queryByIdHandle(data) {
  return request({
    url: 'newsUpdates/queryById',
    method: 'post',
    data
  })
}

// 分享
export function forward(data) {
  return request({
    url: 'newsUpdates/forward',
    method: 'post',
    data,
    urlType: 2
  })
}

// 点赞
export function giveThumbs(data) {
  return request({
    url: 'newsUpdates/giveThumbs',
    method: 'post',
    data,
    urlType: 2
  })
}

// 浏览
export function browse(data) {
  return request({
    url: 'newsUpdates/browse',
    method: 'post',
    data,
    urlType: 2
  })
}

export default {
  listHandle,
  queryByIdHandle,
  forward,
  giveThumbs,
  browse,
}
